package com.ilxqx.fierce.core;

import org.springframework.beans.TypeConverter;
import org.springframework.core.convert.ConversionService;

/**
 * 请求处理支持类
 *
 * @author Venus
 * @since 1.0.0
 */
public class FierceRequestProcessingSupport {

    private static TypeConverter typeConverter;

    public FierceRequestProcessingSupport(ConversionService conversionService) {
        typeConverter = new FierceTypeConverter(conversionService);
    }

    /**
     * 获取类型转换器
     *
     * @return 类型转换器
     */
    public static TypeConverter getTypeConverter() {
        return typeConverter;
    }
}
